package com.css.fxfzypg.modules.report.queryParams;

import com.css.fxfzypg.modules.report.entity.ReportTemplateEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * @author y1fan
 * @create 2022-11-04 15:55
 */
@Data
@Component
public class ReportTemplateEntityQueryParams extends ReportTemplateEntity implements Serializable {


    private Integer curPage;
    private Integer pageSize;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;


    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


}
